
<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
    <div class="pageHeader">
        <div class="searchBar">
            <ul class="searchContent">
                <li><label id="calendarCode" ><@label key="calendarCode.C,colon">日历编号：</@label></label> <input type="text" name="calendarCode" value="${condition.calendarCode!''}" /></li>
                <li><label id="calendarText" ><@label key="calendarText.C,colon">日历描述：</@label></label> <input type="text" name="calendarText" value="${condition.calendarText!''}" /></li>
                <li class="query">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button id="st" type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div>
                </li>

            </ul>
        </div>
    </div>
</form>

<div class="pageContent">

    <div class="panelBar">
        <ul class="toolBar">
            <@buttonRight menuCode="CALENDAR_ADD" labelKey="add.B" defalutName="新增">
            <li><a class="add" target="dialog" mask="true" width="940" height="530" href="${rc.getContextPath()}/manage/calendar/addCalendar?navTabId=${navTabId!''}" rel="addCalendar" title="<@label key="addCalendar.C">新增日历</@label>"><span><@label key="add.B">新增</@label></span>
            </a>
            </li>
            </@buttonRight>
            <@buttonRight menuCode="CALENDAR_EDIT" labelKey="edit.B" defalutName="编辑">
            <li><a class="edit" target="dialog" mask="true" width="940" height="630" href="${rc.getContextPath()}/manage/calendar/editCalendar?id={calendar_code}&navTabId=${navTabId!''}" rel="modifyCalendar" title="<@label key="editCalendar.C">编辑日历</@label>"><span><@label key="edit.B">编辑</@label></span>
            </a>
            </li>
            </@buttonRight>
             <@buttonRight menuCode="CALENDAR_VIEW" labelKey="view.B" defalutName="详情">
            <li><a class="icon" target="dialog" mask="true" width="940" height="540" href="${rc.getContextPath()}/manage/calendar/viewCalendar?id={calendar_code}&navTabId=${navTabId!''}" rel="viewCalendar" title="<@label key="viewCalendar.C">日历详情</@label>"><span><@label key="view.B">详情</@label></span>
            </a>
            </li>
            </@buttonRight>
             <@buttonRight menuCode="CALENDAR_DEL" labelKey="delete.B" defalutName="删除">
            <li><a class="delete" target="selectedTodo" postType="string" rel="ids" href="${rc.getContextPath()}/manage/calendar/deleteCalendar?navTabId=${navTabId!''}" callback="batchjobAjaxDone" title="<@label key="delCalendar.M">确认要删除选中的日历吗？</@label>"><span><@label key="delete.B">删除</@label></span>
            </a>
            </li>
            </@buttonRight>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="134">
        <thead>
            <tr>
                <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl">
                </th>
                <th width="100" orderField="calendarCode"<#if (page.orderField?? && page.orderField == 'calendarCode')>class="${page.orderDirection!''}"</#if>><@label key="calendarCode.C">日历编号</@label></th>
                <th width="100" orderField="calendarText"<#if (page.orderField?? && page.orderField == 'calendarText')>class="${page.orderDirection!''}"</#if>><@label key="calendarText.C">日历描述</@label></th>
                <th width="100" orderField="startDate"<#if (page.orderField?? && page.orderField == 'startDate')>class="${page.orderDirection!''}"</#if>><@label key="startDate.C">开始日期</@label></th>
                <th width="100" orderField="endDate"<#if (page.orderField?? && page.orderField == 'endDate')>class="${page.orderDirection!''}"</#if>><@label key="endDate.C">结束日期</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as calendar>
            <tr target="calendar_code" rel="${calendar.calendarCode!''}">
                <td><input name="ids" value="${calendar.calendarCode!''}" type="checkbox"></td>
                <td>${calendar.calendarCode!''}</td>
                <td>${calendar.calendarText!''}</td>
                <td>${(calendar.startDate?string("yyyy-MM-dd"))?if_exists}</td>
                <td>${(calendar.endDate?string("yyyy-MM-dd"))?if_exists}</td>
            </tr>
            </#list> <#else>
            <tr target="calendar_code">
                        <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if> <#else>
            <tr target="calendar_code">
                        <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/panelBar.html">
</div>